<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.qidian.common.Globals"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object userObj = request.getSession().getAttribute("user") ;
if (Globals.isSuperUser(userObj))
{	
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>管理页面</title>
	<meta http-equiv="expires" content="0">    
	<link href="common/css/mystyle.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="js/ext-all.js"></script>
  	<script type="text/javascript">	
  	var btn_bg_color = '';
  	var btn_color = '';
  	function userAdmin()
  	{
		//window.location = '<%=basePath%>admin?actionType=userAdmin';
		document.getElementById('content').src = 'user';
		document.getElementById('content').style.display = '';
		var elements = document.getElementsByName('toolbar_btn')
		for (var i = 0 ; i < elements.length ; i++)
			elements[i].class='';
		document.getElementById('btn_userAdmin').class = 'btn';
  	}
	 </script>
  </head>  
  <body>
	<div id='toolbarDiv' style="text-align: left color: black; background-color: #E0EAFF; width: 100%; padding: 2px; font: 12px;">
		<th>
			<td><button id='btn_userAdmin' name='toolbar_btn' style="color:#EEEAFF;background-color:#E00AFF" onClick="userAdmin();">开发者管理</button></td>
			<td>客户端管理</td>
			<td>项目类型管理</td>
			<td>充值卡管理</td>
		</th>
	</div>
	<iframe width=90% height=90% id="content" style="display:none;">
	</iframe>
  </body>
</html>
<%
}else{
%>
<td>重新登录</td>
<%
}
 %>
